import json
import re


def get_json(outlines: str):
    match_contents = re.findall(r'```json\n({[\s\S]*?})\n```', outlines)
    if len(match_contents) > 0:
        return json.loads(match_contents[0])
    else:
        return {}